package com.isoftstone.disk.service;

import com.isoftstone.disk.entity.FileObsEntity;
import com.isoftstone.disk.entity.RenameFileEntity;
import com.isoftstone.platform.entity.PadingRstType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.InputStream;

public interface DiskService {
    void addFile(String fileNameDesc,String fileName, InputStream inputStream);

    PadingRstType<FileObsEntity> getFileInfolist();
    ResponseEntity<byte[]> download(String fileId) ;
    void delete(String fileId);
    void copy(String fileId);
    String preview(String fileId);

    void addFloder(String floderName);
    String share(String fileId);
    void moveFile(String floderName,String floderFileName);
    void updateFile(RenameFileEntity fileObsEntity);
}
